const https = require('https');
const fs = require('fs');

let out = fs.createWriteStream('F:\\hadoop-ppt\\a.jpg');

https.get('https://wkretype.bdimg.com/retype/zoom/5d540ab60029bd64783e2c9f?pn=1&o=jpg_6&md5sum=11c1101d45f6e358f34adb6dc7008723&sign=24678989c3&png=0-80297&jpg=0-101531', (res) => {
    console.log('statusCode:', res.statusCode);
    console.log('headers:', res.headers);

    res.on('data', (d) => {
        out.write(d);
    });

}).on('error', (e) => {
    console.error(e);
});